#include "wizard.h"
#include "ui_wizard.h"
#include <QDialog>
Wizard::Wizard(QWidget *parent)
    : QWizard(parent)
    , ui(new Ui::Wizard)
{
    ui->setupUi(this);
}

Wizard::~Wizard()
{
    delete ui;
}

void Wizard::done(int result)
{
    if(result==QDialog::Rejected){
        return QWizard::done(result);
    }
    QString name;
    QString path;
    ui->wizardPage1->get_name_path(name,path);
    emit ProSetSignal(name,path);//传给protree
    QWizard::done(result);//缺少这一行导致Wizard点击完成后不消失。
}
